﻿using Dynamicweb;
using Dynamicweb.eCommerce.Products;
using Dynamicweb.Extensibility;

namespace DwProjectTemplate.CustomModules.Extenders
{
	public class ProductTemplateExtender1 : ProductTemplateExtender
	{
		public override void ExtendTemplate( Dynamicweb.Templatev2.Template Template )
		{
			if ( DwProjectTemplate.App.CodeSettings.EnableProductTemplateExtender1 )
			{
				/*
				COMMENT: Remember you have access to the Product, Order and User from the base object
				base.Product;
				base.Order;
				base.User;
				*/

				//COMMENT: Keep as much as you can inside the Request["ProductID"]
				/*			because this is only run when displaying a single product (product details)
							else will run in all productlists in group-view, basket-view, order-view etc, */
				if ( HttpContext.Current.Request[ "ProductID" ] != null )
				{

				}
				else
				{

				}
			}
		}
	}
}